home *** CD-ROM | disk | FTP | other *** search
- ; DESC: returns the disk transfer address V1.00
- ; OUT: *{SEG_VAL} segment and
- ; *{OFFSET} offset of DTA
- ; SAMPLE: Callm GET_DSK,,<SEG_VAL,OFFSET>
- ; ################################################################
-
- Extrn PUSHALL:Near
- Extrn POPALL:Near
-
- GET_DSKC Segment
- Assume CS:GET_DSKC
- Public GET_DSK
-
- ;notice.
- DB 'GET_DSK - V1.00, Copyright 1987, CoreTechs ',0DH,0AH
-
- GET_DSK Proc Near ;get the DTA.
-
- Call PUSHALL ;save registers.
-
- Mov AH,2FH ;get DTA.
- Int 21H
-
- Push BX ;return offset and
- Push ES ;segmetn of DTA.
-
- Call POPALL ;recover registers.
- Ret
- GET_DSK Endp
-
- GET_DSKC Ends
- End